package com.lp.utils;

import org.apache.shiro.util.ByteSource;

import java.io.IOException;

/**
 * @author 路平
 * 获取密钥
 * @create 2021-04-15 00:26
 */
public class RegistUtil {

    public ByteSource getSalt(String username) throws IOException {
        //密钥
        ByteSource credenttialSalt=ByteSource.Util.bytes(username);
        return credenttialSalt;
    }
}
